Skip to content

refactor: use shared make_headers instead of inline GitHub header dicts#413

Closed
jamesrayammons wants to merge 2 commits intoentrius:testfrom
jamesrayammons:refactor/use-shared-make-headers
Closed

refactor: use shared make_headers instead of inline GitHub header dicts#413
jamesrayammons wants to merge 2 commits intoentrius:testfrom
jamesrayammons:refactor/use-shared-make-headers

Conversation

@jamesrayammons
Copy link
Copy Markdown

Summary

Replace inline {'Authorization': f'token {token}', 'Accept': ...} header dicts with the existing make_headers() utility from utils/github_api_tools.py.

Related Issues

N/A (code cleanup)

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Documentation
  • Other (describe below)

Testing

  • Tests added/updated
  • Manually tested

No behavior change — make_headers() returns the identical dict that was previously inline.

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Changes are documented (if applicable)

Replace inline {'Authorization': f'token {token}', 'Accept': ...} header
dicts with the existing make_headers() utility from utils/github_api_tools.

Files changed:
- cli/miner_commands/post.py
- validator/issue_discovery/repo_scan.py
@jamesrayammons
Copy link
Copy Markdown
Author

@anderdc @LandynDev Could you please this PR?

@anderdc
Copy link
Copy Markdown
Collaborator

anderdc commented Apr 15, 2026

Closing this one out. The change only touches 2 callsites and the payoff isn't really worth the merge overhead. If we do a broader consolidation of inline GitHub headers later we can revisit.

@anderdc anderdc closed this Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants